package cn.bdqn.service.emp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.dao.emp.EmpMapper;
import cn.bdqn.pojo.Depatement;
import cn.bdqn.pojo.Emp;

@Service("empservice")
public class EmpServiceImpl implements EmpService {
	@Resource
		private EmpMapper empmapper;
	
	@Override
	public List<Emp> list(String empName,int depId,int a,int b) {
		
		return empmapper.list(empName,depId,a,b);
	}

	@Override
	public int add(Emp emp) {
		
		return empmapper.add(emp);
	}

	@Override
	public Emp view(int id) {
		
		return empmapper.view(id);
	}

	@Override
	public int count(String empName,int depId) {
		
		return empmapper.count(empName,depId);
	}

	@Override
	public List<Depatement> getDepList() {
		// TODO Auto-generated method stub
		return empmapper.getDepList();
	}

}
